package net.thermetics.fx.services.test;

import net.thermetics.fx.features.Feature;
import net.thermetics.fx.features.ScopedComponent;
import net.thermetics.fx.services.FeatureService;

public class MockFeatureService implements FeatureService {

	@Override
	public Feature getFeature(String name) {
		Feature f = new Feature();
		f.setName(name);
		f.setId(name + "-id");
		makeComponents(f);
		return f;
	}
	
	private void makeComponents(Feature f) {
		ScopedComponent sc = new ScopedComponent();
		sc.setId("comp1");
		sc.setCodeUrl("www.thermetics.net");
		f.addComponent(sc);
	}

}
